package cn.wfu.rlrjds.app.log;

import java.util.Date;
import java.util.UUID;

import org.junit.Test;

import cn.wfu.rlrjds.app.log.domain.Log;
import cn.wfu.rlrjds.app.log.service.ILogService;
import cn.wfu.rlrjds.container.ServiceProvinder;

public class LogService {
	@Test
	public void testAddLog() {
		Log log = new Log();
		log.setIp("123");
		log.setLogDate(new Date());
		log.setLogId(UUID.randomUUID().toString());
		log.setType(2);
		log.setUserName("admin");
		ILogService logService = (ILogService) ServiceProvinder
				.getService("logServiceImpl");
		logService.saveLog(log);
	}
}
